package com.university.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.university.pojo.cqe.query.FoodQuery;
import com.university.pojo.dto.FoodUserDTO;
import com.university.pojo.entity.Food;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodMapper extends BaseMapper<Food> {

    IPage<Food> adminGetFoodPage(IPage<Food> page, @Param("query") FoodQuery query);

    List<FoodUserDTO> userGetFood(FoodQuery query);

}
